home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / Creative Computers CD-ROM, Volume 1 (Legendary Design Technologies, Inc.)(1994).iso / shareware / intuition / yak_1.57 / source / yak.h < prev    next >
C/C++ Source or Header  |  1994-11-17  |  3KB  |  124 lines

  1. /*** external declarations for settings ***/
  2.  
  3. #include <exec/types.h>
  4. #include <libraries/commodities.h>
  5. /* #define MWDEBUG 1 */
  6. #include "memwatch.h" /* To enable memlib, you must #define MWDEBUG to 1 */
  7.  
  8. /***** the toggles *****/
  9. typedef struct {
  10.     BOOL    pos;        /* position of toggle (ie. off or on) */
  11.     WORD    gadid;        /* index to CheckBox gadget array */
  12. } TOGGLEDATA;
  13.  
  14. #define NUM_TOGGLES    13
  15. extern TOGGLEDATA toggles[NUM_TOGGLES];
  16.  
  17. #define clicktofront    toggles[0].pos    /* window depth-change by mouse-clicks */
  18. #define    clicktoback    toggles[1].pos    /* ditto */
  19. #define    autopoint    toggles[2].pos    /* sunmouse */
  20. #define    keyactivate    toggles[3].pos    /* key over window activates */
  21. #define    screencycle    toggles[4].pos    /* clicktoback over backdrop or no window */
  22. #define    autopop        toggles[5].pos    /* autopoptofront */
  23. #define    rmbactivate    toggles[6].pos    /* RMB activates window */
  24. #define wildstar    toggles[9].pos    /* allow '*' as wildcard */
  25. #define scractivate    toggles[10].pos    /* activate window when shuffling screens */
  26. #define noclick     toggles[11].pos    /* no click on drives */
  27. #define    mmbactivate    toggles[12].pos    /* MMB activates window */
  28.  
  29. #define MB_NONE        0    /* mouse-blank method */
  30. #define MB_SPRITES    1
  31. #define MB_COPPER    2
  32.  
  33. #define WILDSTARON    ((struct RootNode *)(DOSBase->dl_Root))->rn_Flags |= RNF_WILDSTAR
  34. #define WILDSTAROFF    ((struct RootNode *)(DOSBase->dl_Root))->rn_Flags &= ~RNF_WILDSTAR
  35.  
  36.  
  37. /* MMB replacement */
  38. #define MMB_NOTHING     0
  39. #define MMB_ALT         1
  40. #define MMB_LALT     2
  41. #define MMB_RALT     3
  42. #define MMB_CONTROL  4
  43. #define MMB_LCOMMAND 5
  44. #define MMB_RCOMMAND 6
  45. #define MMB_SHIFT    7
  46. #define MMB_LSHIFT   8
  47. #define MMB_RSHIFT   9
  48.  
  49.  
  50. /***** the patterns *****/
  51. #define PATLEN 99
  52. typedef struct {
  53.     char patstr[PATLEN+1];
  54.     char *pat;
  55. } PATTERNDATA;
  56.  
  57. #define NUM_PATTERNS 4
  58. extern PATTERNDATA patterns[NUM_PATTERNS];
  59.  
  60. /* indices of patterns */
  61. #define YP_AUTOSCR_PAT    0
  62. #define YP_CLICKSCR_PAT    1
  63. #define YP_POPWIN_PAT    2
  64. #define YP_CLICKWIN_PAT    3
  65.  
  66. /* shorthand */
  67. #define autoscrpat    patterns[YP_AUTOSCR_PAT].pat
  68. #define clickscrpat    patterns[YP_CLICKSCR_PAT].pat
  69. #define popwinpat    patterns[YP_POPWIN_PAT].pat
  70. #define clickwinpat    patterns[YP_CLICKWIN_PAT].pat
  71.  
  72. /***** other settings *****/
  73. #ifdef OLD
  74. extern LONG datefmt;
  75. #endif
  76. extern LONG click_volume;
  77.  
  78. extern LONG autopoint_delay;
  79.  
  80. extern LONG blanktimeout;
  81. extern LONG blanksecs;
  82. extern LONG blankcount;
  83.  
  84. extern LONG mouseblank;
  85. extern LONG mblanktimeout;
  86. extern LONG mblanksecs;
  87. extern LONG mblankcount;
  88.  
  89. extern LONG qualifier;
  90.  
  91. /* changed for 1.3 */
  92. #define CONFIG_FILE "S:Yak.prefs"
  93. /* added for 1.5 */
  94. #define HOTKEY_FILE "S:Yak.hotkeys"
  95.  
  96. /*** defines from main.c ***/ 
  97. extern struct Locale *locale;
  98. extern CxObj *broker;
  99. extern struct MsgPort *broker_mp;
  100. extern ULONG wndsigflag;
  101. extern char *PopKeyStr;
  102.  
  103. /*** defines from pri.c ***/ 
  104. /* task priority types */
  105. #define ORIGINAL    0
  106. #define ACTIVE        1
  107.  
  108. /*** defines for handler.c ***/ 
  109. /* for AutoActivateWindow - why? */
  110. #define SCREEN    0
  111. #define AUTO    1
  112. #define KEY    2
  113. #define RMBACT  3
  114.  
  115. /*** defines from help.c ***/
  116. #define HELP_ERROR    0
  117. #define HELP_OKAY    1
  118. #define HELP_HIDE    2
  119. #define HELP_QUIT    3
  120.  
  121. #include "localprotos.h"
  122.  
  123.  
  124.